package com.flynn.rock.system.repository;

import com.flynn.rock.system.entity.SysRoleAuthorityRelationEntity;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysRoleAuthorityRelationRepository extends CrudRepository<SysRoleAuthorityRelationEntity, Long> {

    List<SysRoleAuthorityRelationEntity> findAllByRoleIdIn(List<Long> roleIds);
}
